package com.github.zzay.common.security.exception;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.github.zzay.common.security.serializer.CustomOAuthExceptionSerializer;
import org.springframework.security.oauth2.common.exceptions.OAuth2Exception;

/**
 * 自定义的OauthException
 *
 * @author zdz
 * @date 2022/04/11 19:56
 */
@JsonSerialize(using = CustomOAuthExceptionSerializer.class)
public class CustomOAuthException extends OAuth2Exception {

    public CustomOAuthException(String msg) {
        super(msg);
    }

}
